package lab02.test35;

public class Worker extends Employee{
    int day;
    double daySalary;

    public Worker(){}

    public Worker(String name, int day, double daySalary) {
        super(name);
        this.day = day;
        this.daySalary = daySalary;
    }

    @Override
    public double computeSalary() {
        return day * daySalary;
    }
}
